package com.neusoft.feign;

import com.neusoft.core.CommonResult;
import com.neusoft.core.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="user-server", fallback = UserFeignClientCallBack.class)
public interface UserFeignClient {
    @RequestMapping("/UserController/UserLogin")
    public CommonResult<User> getUserByIdByPass(
            @RequestParam("userId") String userId, @RequestParam("password") String password);

    @PostMapping("/updateUserTypeByUserId")
    public void updateUserTypeByUserId(User user);
}
